API Request
-
This class conforms to APIRequestType and provides some more functionality of its own specific to Usher Server APIs. Use this along with
UsherAPITask
to make calls to Usher Server API endpoints.Declaration
Swift
public class UsherAPIRequest : APIRequestType
-
An APIRequestConfigurationType that configures API requirements for the Usher Server either by providing an
UsherAPITask
at initialization or initializing with a server and device instance. This class will also automatically configure other properties required by the Usher Server such as access token, location, device and OS info, locale, timezone and time.Declaration
Swift
public struct UsherAPIRequestConfiguration : APIRequestConfigurationType
-
A closure provided by the type conforming to APIRequestConfigurationType protocol. This will be called by APIRequest with raw URLResponse so the implementor has a opportunity to parse, restructure and make better sense of the response if necessary.
Declaration
Swift
public typealias CustomResponseDeserializer = (Request, Data?) -> [String : String]
-
An enum for different API request tasks to Usher Server. These values are used to initialize and configure an
UsherAPIRequestConfiguration
instance.Declaration
Swift
public enum UsherAPITask
-
A configuration struct for making resource access requests to Usher Server.
Declaration
Swift
public struct AccessResourceConfig
-
Typealias of
AccessResourceConfig
Declaration
Swift
public typealias GenericCodeScanConfig = AccessResourceConfig
-
Typealias of AccessResourceConfig
Declaration
Swift
public typealias VerifyQRConfig = AccessResourceConfig